package com.ry.feign.controller;

import com.netflix.discovery.converters.Auto;
import com.ry.feign.service.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/feign")
public class FeignController {
    @Autowired
    private FeignService feignService;

    @GetMapping("/testFeign")
    public  String testRibbon(){
        return feignService.testFeign();
    }
}
